package com.jiaomatech.doc.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.util.ResourceUtils;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Description: $VAL$ .<br>
 *
 * @author jm
 *     Created By 2018/12/13 下午6:33
 */
@Configuration
public class WebAppConfigurer implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/script/**").addResourceLocations(ResourceUtils.CLASSPATH_URL_PREFIX + "/script/");
    }
}
